package com.yzr.common.util;

import java.io.Serializable;
import java.util.Objects;

/**
 * @description
 * @author: yx-0173
 * @date: 2021-08-06 17:37
 **/
public class Statudents implements Serializable {
    private static final long serialVersionUID = -6430800073997664980L;

    private String name;

    private Integer age;

    private Statudents() {
    }

    private Statudents(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Statudents that = (Statudents) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(age, that.age);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age);
    }

    @Override
    public String toString() {
        return "Statudents{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
